package com.juhuixing.user.server.persistence.entity;

import com.juhuixing.common.config.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.sql.Timestamp;

@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class BaseUser extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 头像
     */
    private String avatar;
    /**
     * 用户唯一标识
     */
    private String username;
    /**
     * 密码
     */
    private String password;
    /**
     * 名字
     */
    private String nickname;

    /**宠物昵称**/
    private String petNickname;

    /**生日**/
    private String birthday;

    /**星座**/
    private String constellation;

    /**
     * 性别(0:女 1：男)
     */
    private Integer sex;
    /**
     * 邮箱
     */
    private String email;
    /**
     * 电话号码
     */
    private String phone;
    /**
     * 启用状态0：禁用 1：启用
     */
    private Integer status;

    /**
     * 小程序openId
     */
    private String openId;

    /**
     * 多个微信程序在同一个平台下的唯一标识
     */
    private String unionId;
    
    /**宠物形象图片**/
    private String petImage;

    /**宠物背景图**/
    private String backImage;

    /**语音介绍**/
    private String voiceIntro;

    /**宠物配音**/
    private String petVoice;

    /**宠物类型**/
    private Integer petType;

    /**魅力值**/
    private Integer charm;

    /**用户来源**/
    private String source;

    public static final String AVATAR = "avatar";

    public static final String USERNAME = "username";

    public static final String PET_NICKNAME = "pet_nickname";

    public static final String PASSWORD = "password";

    public static final String NICKNAME = "nickname";

    public static final String BIRTHDAY = "birthday";

    public static final String SEX = "sex";

    public static final String EMAIL = "email";

    public static final String PHONE = "phone";

    public static final String STATUS = "status";

    public static final String OPEN_ID = "open_id";

    public static final String UNION_ID = "union_id";

    public static final String PET_IMAGE = "pet_image";

    public static final String PET_VOICE = "pet_voice";

    public static final String PET_TYPE = "pet_type";

    public static final String BACK_IMAGE = "back_image";

    public static final String VOICE_INTRO = "voice_intro";

    public static final String CHARM = "charm";

    public static final String SOURCE = "source";

}